<?php

class Blog extends Controller {

function Controller(){

}

	function index()
	{
		$this->load->database();
		
		$data['title'] = "My Real Title";
		$data['heading'] = "My Real Heading";
		
		$this->load->view('blogview', $data);
		
		$query = $this->db->query('SELECT nom FROM exposition');

		foreach ($query->result() as $row)
		{
			echo $row->nom;
			
		}

		
	}
	
	function comments()
	{
		echo 'Look at this!';
	}
	
	function shoes($sandals, $id)
    {
        echo $sandals;
        echo $id;
    }
}
?>

